package com.threegroup.admin.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.threegroup.admin.entity.SysDeptEntity;
import com.threegroup.common.validator.group.AddGroup;
import com.threegroup.common.validator.group.DefaultGroup;
import com.threegroup.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 角色管理
 *
 * @author kohlerm kohlerm@163.com
 * @since 1.0.0 2022-12-16
 */
@Data
public class SysRoleDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Null(message="{id.null}", groups = AddGroup.class)
	@NotNull(message="{id.require}", groups = UpdateGroup.class)
	private Long id;

	@NotBlank(message="{sysrole.name.require}", groups = DefaultGroup.class)
	private String name;

	private String remark;

	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	private Date createDate;

	private List<Long> menuIdList;

	private List<Long> deptIdList;


}